package my.bean;

import java.util.Date;

/**
 * database table : orders
 * bean : Order
 * attribute : id,user,tea,count,buyDate
 * @author slim
 *
 */
public class Order {
	private int id;
	private User user;
	private Tea tea;
	private double count;
	private Date buyDate;

	public Order(int id, User user, Tea tea, double count, Date buyDate) {
		super();
		this.id = id;
		this.user = user;
		this.tea = tea;
		this.count = count;
		this.buyDate = buyDate;
	}

	public Order(User user, Tea tea, double count, Date buyDate) {
		super();
		this.user = user;
		this.tea = tea;
		this.count = count;
		this.buyDate = buyDate;
	}

	public Order() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Tea getTea() {
		return tea;
	}

	public void setTea(Tea tea) {
		this.tea = tea;
	}

	public double getCount() {
		return count;
	}

	public void setCount(double count) {
		this.count = count;
	}

	public Date getBuyDate() {
		return buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

}
